class Foo(object):
    def __str__(self):
        return "foo"

class ID(object):
    def __init__(self, id):
        self.id = id

    def __str__(self):
        return "#%08x" % self.id

if __name__ == '__main__':
    print Foo(), ID(42)
